﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;

namespace IAD2
{
    class SquarePoints : PointGenerator
    {
        public SquarePoints(Neuron center, double radius, int number)
        {
            this.points = new List<Neuron>();
            Random random = new Random();
            for (int i = 0; i < number; i++)
            {
               
                double x = (random.NextDouble() * 2 - 1) * radius + center.X;
                double y = (random.NextDouble() * 2 - 1) * radius + center.Y;
                this.points.Add(new Neuron(x, y));
            }
        }
    }
}
